KAnnotatedElement

interface KAnnotatedElement

Represents an annotated element and allows to obtain its annotations. See the Kotlin language documentation for more information.

Inheritors

KParameter
Link copied to clipboard
KCallable
Link copied to clipboard
KClass
Link copied to clipboard
KType
Link copied to clipboard

Extensions

findAnnotation
Link copied to clipboard
inline fun <T : Annotation> KAnnotatedElement.findAnnotation(): T?

Returns an annotation of the given type on this element.

hasAnnotation
Link copied to clipboard
inline fun <T : Annotation> KAnnotatedElement.hasAnnotation(): Boolean

Returns true if this element is annotated with an annotation of type T.